package com.design;

/**
 * 菜单项
 */
public class MenuItem extends MenuAbstract {
    private String name;
    public MenuItem(String name){
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void print() {
        System.out.println(name);
    }
}
